package com.byapp.fast.modules.order.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@NoArgsConstructor
@ApiModel
public class OrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "reqToken不能为空")
    @JsonProperty(value = "req_token")
    @ApiModelProperty("请求Token")
    private String reqToken;

    @JsonProperty(value = "data")
    @ApiModelProperty(value = "数据对象")
    private OrderDataDTO orderDataDTO;

}
